/*
 * @Descripttion: 
 * @Author: liuYaoYu
 * @Date: 2021-11-14 23:17:48
 * @LastEditors: liuYaoYu
 * @LastEditTime: 2021-11-14 23:23:01
 */
interface Itype {
    name: string,
    age: number,
    addr?: string,
    sayHello?(n: string): void
}
// 接口就是声明一个对象的解构

let obj: Itype = {
    name: "123",
    age: 1,
    addr: ""
}

// 这个方式表示 implements 我们的类 满足这个接口的形式
class Person implements Itype {
    name = '123'
    age = 13

}

export { }